﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Threading.Tasks;
using Covid.Shared.Dtos;

namespace Covid.Server.Entities
{

    /// <summary>
    /// 每日健康录入
    /// </summary>
    public class DailyHealth
    {
        /// <summary>
        /// 员工ID
        /// </summary>
        public int EmployeeId { get; set; }

        [Display(Name = "日期")]
        public DateTime Date { get; set; }

        [Display(Name = "身体状况")]
        public HealthCondition HealthCondition { get; set; }

        [Display(Name = "体温")]
        public float Temperature { get; set; }

        [Display(Name = "备注")]
        [MaxLength(50, ErrorMessage = "{0}的长度不能超过{1}")]
        public string Remark { get; set; }

    }
}
